package br.com.pfc.application.service.locais;

import br.com.pfc.application.dao.EnderecoDAO;
import br.com.pfc.application.dao.LocalDAO;
import br.com.pfc.model.Endereco;
import br.com.pfc.model.Local;
import java.util.List;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;

/**
 *
 * @author mucceli
 */
@AutoCreate
@Name("localService")
public class LocalService {

    @In
    EnderecoDAO enderecoDAO;
    @In
    LocalDAO localDAO;

    public void salvarEndereco(Endereco endereco) {
        enderecoDAO.salvar(endereco);
    }

    public List<Local> obterTodos(){
        return localDAO.obterTodos();
    }
}
